#define _CRT_SECURE_NO_WARNINGS 1

#include "List.h"

void test1()
{
	LTNode* plist = LTInit();

	LTPushBack(plist, 1);
	LTPushBack(plist, 2);
	LTPushBack(plist, 3);
	LTPushBack(plist, 4);
	LTPrint(plist);

	LTPopBack(plist);
	LTPopBack(plist);
	LTPrint(plist);

	LTPushFront(plist, 5);
	LTPushFront(plist, 6);
	LTPushFront(plist, 7);
	LTPrint(plist);

	LTPopFront(plist);
	LTPopFront(plist);
	LTPrint(plist);

	LTNode* ret = LTFind(plist,2);
	if (ret)
	{
		LTErase(ret);
		ret = NULL;
	}
	LTPrint(plist);

	LTDestroy(plist);
	plist = NULL;

}

int main()
{
	test1();

	return 0;
}